package cn.zz.veggie.model.enums;

import java.util.Objects;

import lombok.AllArgsConstructor;

/**
 * @author zhongq
 * @since 2024/7/30
 */
@AllArgsConstructor
public enum ProductStatus {

    deleted(0),
    active(1);

    public final int status;

    public static boolean match(ShopStatus shopStatus, Integer status) {
        return Objects.equals(shopStatus.status, status);
    }
}